//
//  SaveListAndAddressMangerFooter.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/26.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "SaveListAndAddressMangerFooter.h"

@implementation SaveListAndAddressMangerFooter

+(instancetype)one
{
    return [[[NSBundle mainBundle] loadNibNamed:@"SaveListAndAddressMangerFooter" owner:nil options:nil] lastObject];
}

- (IBAction)selectAll:(UIButton *)sender {
    if (self.a == 0) {
        self.a = 1;
        [self.delegate selectAll];
        [sender setBackgroundImage:[UIImage imageNamed:@"goodSelected.png"] forState:UIControlStateNormal];
    }else
    {
        self.a = 0;
        [self.delegate deselectAll];
        [sender setBackgroundImage:[UIImage imageNamed:@"goodNotSelected.png"] forState:UIControlStateNormal];
    }
}

- (IBAction)deleteAll:(UIButton *)sender {
    [self.delegate Result];
}

@end
